home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10457 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  29 lines

  1. Newsgroups: comp.lang.c
  2. Path: novice.uwaterloo.ca!panorpid
  3. From: JDCRYMBL@MECHANICAL.uwaterloo.ca (Derry Crymble)
  4. Subject: Interupt driven serial communications
  5. Sender: news@novice.uwaterloo.ca (Mr. News)
  6. Message-ID: <4iieqq$90k_001@watstar.uwaterloo.ca>
  7. Date: Mon, 18 Mar 1996 01:38:34 GMT
  8. Nntp-Posting-Host: panorpid.watstar.uwaterloo.ca
  9. Organization: University of Waterloo
  10. X-Newsreader: News Xpress Version 1.0 Beta #3
  11.  
  12. I have been trying to communicate with a force sensor for the parst 3 
  13. weeks.  I initially used the _bios_serial_com built in functions and 
  14. although i was able to send and recieve data i am having problems at 
  15. higher baud rates.  I am looking to access the com port in C using 
  16. the inportb() and outportb() functions and use the hardware 
  17. interupts, does anybody know what i can do.
  18.  
  19. I have been trying to program the UART and the 8259 but I am having 
  20. no luck.  My interupt handler works because when i have the clocktick 
  21. interupt vectored to my handler it enters the handler routine.
  22.  
  23. I relize there is assembly code that probably could do the trick but 
  24. i would preffer to C.
  25.  
  26. Any suggestions.
  27.  
  28. Thank You.
  29.